/* 
描述：Question类用于表示问答社区中的问题实体，包含问题的基本信息如标题、内容、图片、创建时间等，
以及关联的用户ID、点赞数和回答数等统计信息。
完成人：吴悠 
完成时间: 2025/04/27
*/
package com.jiesenhe.qacommunity.pojo;

import java.io.Serializable;

public class Question implements Serializable {
    private Integer  id;
    private String title;
    private String content;
    private String img;
    private String createtime;
    private String updatatime;
    private int user_id;
    private int likes;
    private int answercount;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getUpdatatime() {
        return updatatime;
    }

    public void setUpdatatime(String updatatime) {
        this.updatatime = updatatime;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getLikes() {
        return likes;
    }

    public void setLikes(int likes) {
        this.likes = likes;
    }

    public int getAnswercount() {
        return answercount;
    }

    public void setAnswercount(int answercount) {
        this.answercount = answercount;
    }
}
